.report-tree-section-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 300px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fafafa;
  overflow: hidden;

  .report-custom-tree {
    flex: 1;
    overflow-y: auto;
    font-size: 14px;
    padding: 8px;
    
    // 树节点样式优化
    .ant-tree-treenode {
      padding: 4px 0;
      width: 100%;
      
      // 第一级节点特殊样式
      &.ant-tree-treenode-level-0 {
        .ant-tree-node-content-wrapper {
          width: calc(100% - 26px);
          font-weight: 600;
          color: #4f2d7e;
        }
      }
      
      .ant-tree-node-content-wrapper {
        padding: 6px 8px;
        border-radius: 4px;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        width: 100%;
        
        &:hover {
          background-color: #ede3fa;
        }
        
        &.ant-tree-node-selected {
          background-color: #ede3fa;
          color: #4f2d7e;
          font-weight: 500;
        }
      }
      
      .ant-tree-title {
        font-size: 14px;
        color: #333;
        line-height: 24px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }
    
    // 图标样式优化
    .ant-tree-iconEle {
      width: 16px;
      height: 16px;
      line-height: 16px;
      margin-right: 6px;
      
      .anticon {
        font-size: 16px;
        color: #4f2d7e;
      }
    }
    
    // 展开/收起图标样式
    .ant-tree-switcher {
      width: 20px;
      height: 24px;
      line-height: 24px;
      margin-right: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      display: none;
      
      svg {
        width: 14px !important;
        height: 14px !important;
        color: #4f2d7e;
      }
      
      .ant-tree-switcher-icon {
        font-size: 14px;
        color: #4f2d7e;
        transition: color 0.2s ease;
      }
      
      &:hover .ant-tree-switcher-icon {
        color: #4f2d7e;
      }
    }
    
    // 连接线样式优化
    .ant-tree-show-line .ant-tree-indent-unit::before {
      border-left: 1px solid #4f2d7e;
    }
    
    .ant-tree-show-line .ant-tree-switcher {
      background: #fafafa;
      
      &::before {
        border-color: #4f2d7e;
      }
    }
    
    // 叶子节点样式
    .ant-tree-treenode-leaf-last .ant-tree-switcher-leaf-line::before {
      border-left: 1px solid #4f2d7e;
    }
    
    .ant-tree-treenode-leaf-last .ant-tree-switcher-leaf-line::after {
      border-bottom: 1px solid #4f2d7e;
    }
    
    // 缩进优化
    .ant-tree-indent {
      .ant-tree-indent-unit {
        width: 20px;
      }
    }
    
    // 滚动条样式
    &::-webkit-scrollbar {
      width: 6px;
    }
    
    &::-webkit-scrollbar-track {
      background-color: rgba(255, 255, 255, 0.1);
      border-radius: 3px;
    }
    
    &::-webkit-scrollbar-thumb {
      background-color: #999;
      border-radius: 3px;
      
      &:hover {
        background-color: #999;
      }
    }
  }
}

// 右键菜单样式优化
.report-tree-context-menu {
  position: fixed;
  z-index: 1000;
  background: #fff;
  border: 1px solid #4f2d7e;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
  padding: 4px 0;
  min-width: 140px;
  
  .menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    line-height: 22px;
    color: #333;
    transition: background-color 0.2s ease;
    
    &:hover {
      background-color: #e6f7ff;
      color: #4f2d7e;
    }
    
    &:active {
      background-color: #bae7ff;
    }
  }
  
  .menu-divider {
    height: 1px;
    background-color: #4f2d7e;
    margin: 4px 0;
  }
}